const System = () => import('@/views/System/index.vue')
const SystemPost = () => import('@/views/System/Post/index.vue')
const SystemDept = () => import('@/views/System/Dept/index.vue')
const SystemShare = () => import('@/views/System/Share/index.vue')

const routes = [
  {
    path: '/system',
    name: 'system',
    component: System,
    meta: { title: '系统管理', icon: 'Setting', orderNo: 20 },
    children: [
      {
        path: 'post',
        name: 'systemPost',
        component: SystemPost,
        meta: { title: '岗位管理' }
      },
      {
        path: 'dept',
        name: 'systemDept',
        component: SystemDept,
        meta: { title: '分组管理' }
      },
      {
        path: 'share',
        name: 'systemShare',
        component: SystemShare,
        meta: { title: '分成管理' }
      }
    ]
  }
]

export default [] || routes
